import service from './request'
// 访问接口地址
const baseUrl = "/gpt"
const openAi = (data) =>
  service({
    url: baseUrl + '/v1/chat/completions',
    method: 'post',
    headers: {
      'content-type': 'application/json',
      Authorization:
        'Bearer ' + import.meta.env.VITE_ChatGPT_API_KEY,
    },
    data,
  })
export default { openAi }
 